
        <div class="form-add">
        	<?php admin_msg( $msg ); ?>
        	<script type="text/javascript" src="<?php echo admin_editor_path(); ?>tiny_mce.js"></script>
        	<script type="text/javascript" src="<?php echo admin_js(); ?>editor.js"></script>
    		<form name="myform" action="<?php echo $form ?>" method="post" enctype="multipart/form-data">
            	<table width="100%">
            		<tr>
                        <td width="120">Tên bài viết</td>
                        <td><input type="text" name="name" value="" maxlength="255" class="text" /></td>
            		</tr>
                    <tr>
                    	<td>Thuộc chủ đề</td>
                        <td>
                        	<?php 
                           		$cat_current = isset( $_POST['cat'] ) ? (int)$_POST['cat'] : 0;
                           		admin_cat_combo( $menu_cat, $cat_current, 10 );                            	
                           	?>
                        </td>
                    </tr>
                    <?php if ( $using == 4 ) { ?>
                    <tr>
                        <td colspan="2" class="h4">File đính kèm</td>
                    </tr>			
                    <tr>
                        <td>Đường dẫn file</td>
                        <td><input type="file" name="userfile" /></td>
            		</tr>                   
                    <?php } ?>			
                    <?php if ( $using == 1 ) { ?>
                    <tr>
                        <td>Nguồn tin</td>
                        <td><input type="text" name="source" value="" maxlength="255" class="text" /></td>
            		</tr>
                    <tr>
                        <td>Tác giả</td>
                        <td><input type="text" name="author" value="" maxlength="255" class="text" /></td>
            		</tr>
                    <?php } ?>
                    <?php 					
						$image = isset( $_POST['pic'] ) ? htmlspecialchars( $_POST['pic'] ) : '';
						admin_box_img( $image ) ;					
					?>                    
                    <tr>
                        <td colspan="2" class="h4">Giới thiệu tin</td>
                    </tr>
                    <tr>
                		<td>Mô tả ngắn</td>
                		<td><textarea name="description" class="text textarea" cols="10" rows="10"></textarea></td>
            		</tr> 
                    <tr>
                        <td colspan="2" class="h4">Chi tiết tin</td>
                    </tr>
                    <tr>
                		<td>Nội dung chi tiết</td>
                		<td><?php thickbox_img() ?><textarea name="detail" id="detail" class="text textarea" cols="10" rows="10"></textarea></td>
            		</tr>
                    <tr>
                        <td colspan="2" class="h4">Tùy chọn</td>
                    </tr>
                    <tr>
                        <td>Hiển thị</td>
                        <td>
                            <p>
                                <input type="radio" name="status" value="1" checked="checked" /> <span>Có</span>
                                <input type="radio" name="status" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Mới</td>
                        <td>
                            <p>
                                <input type="radio" name="new" value="1" /> <span>Có</span>
                                <input type="radio" name="new" value="0" checked="checked" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Tiêu biểu</td>
                        <td>
                            <p>
                                <input type="radio" name="focus" value="1" /> <span>Có</span>
                                <input type="radio" name="focus" value="0" checked="checked" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Hiển thị trang chủ</td>
                        <td>
                            <p>
                                <input type="radio" name="home" value="1" /> <span>Có</span>
                                <input type="radio" name="home" value="0" checked="checked" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" name="submit" value="Thêm tin mới" class="button" /> <input type="reset" name="reset" value="Làm lại" class="button" /></td>
                    </tr>
                    
                </table>
                
            </form>
		</div>